package me.dengfengdecao.demo.service;

import me.dengfengdecao.demo.domain.User;

import java.util.List;

/**
 * Created by dengfengdecao on 16/9/26.
 */
public interface UserService {

    User findUserById(Long id);

    /**通过username查找用户信息;*/
    User findByUsername(String username);

    void delFromCache(Long id);

    void save(User user);

    List<User> getUsers();
}
